﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TI;
using MergeTI.TiDocumentProcessor;
using MongoDB;
using TiEntityObject.Transport;

namespace TI_DocumentLoader
{
    class Program
    {
        static void Main(string[] args)
        {
            FastDocLoader d = new FastDocLoader();
            FastDocLoader.config = TransportConfig.ReadConfig();

            if (args.Length > 0)
                d.Run(FastDocLoader.config.TheardCount,Convert.ToDateTime(args[0]));
            else
                d.Run(FastDocLoader.config.TheardCount, DateTime .Now);
                      
        }
    }
  }

